/*
 * CLight.h
 *
 *  Created on: Sep 19, 2011
 *      Author: welcome
 */

#ifndef CLIGHT_H_
#define CLIGHT_H_

#include <GLES/gl.h>
#include <KD/kd.h>

namespace GGEngine {

#ifndef NULL
#define NULL KD_NULL
#endif

class CLight {

public:
	CLight();
	virtual ~CLight();

    GLfloat *getAmbient() const;
    GLfloat *getDiffuse() const;
    GLfloat *getEmission() const;
    GLfloat *getPosition() const;
    GLfloat *getSpecular() const;

    void setAmbient(GLfloat *m_ambient);
    void setDiffuse(GLfloat *m_diffuse);
    void setEmission(GLfloat *m_emission);
    void setPosition(GLfloat *m_position);
    void setSpecular(GLfloat *m_specular);

    void initLight();
private:
    GLfloat* m_position;
    GLfloat* m_ambient;
    GLfloat* m_diffuse;
    GLfloat* m_specular;
    GLfloat* m_emission;
};

} /* namespace GGEngine */
#endif /* CLIGHT_H_ */
